package org.example.leetcode.core.api;

import org.example.leetcode.common.pojo.GlobalResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author topto
 */
@FeignClient(value = "core",name = "core",path = "/core",url = "localhost:8001")
public interface TQuestionPublicService {
    /**
     * xxl定时调用，用于将redis中的用户点击类型的次数记录到数据库
     * @return
     */
    @GetMapping("/clickLog")
    public GlobalResponse clickLog();

    @GetMapping("/dailyQuestionGenerate")
    void dailyQuestionGenerate(String date);

}
